﻿using ERP.ERPSystem.ProductionSystem.Dto;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 客户服务接口
    /// </summary>
    public interface ICustomerServices : IApplicationService
    {
        /// <summary>
        /// 根据ID获取单个客户信息
        /// </summary>
        Task<CustomerDto> GetAsync(int id);

        /// <summary>
        /// 根据查询条件分页获取客户列表
        /// </summary>
        Task<PagedResultDto<CustomerDto>> GetListAsync(GetCustomerInputDto input);

        /// <summary>
        /// 创建一个新客户
        /// </summary>
        Task<CustomerDto> CreateAsync(CreateUpdateCustomerDto input);

        /// <summary>
        /// 更新一个客户信息
        /// </summary>
        Task<CustomerDto> UpdateAsync(int id, CreateUpdateCustomerDto input);

        /// <summary>
        /// 删除一个客户
        /// </summary>
        Task DeleteAsync(int id);
        
        /// <summary>
        /// 批量删除客户
        /// </summary>
        Task DeleteManyAsync(IEnumerable<int> ids);
    }
}
